# 定义一个学生类
class Student(object):
    #定义一个类属性count
    count = 0
    def __init__(self, name):
        self.name = name
        Student.count += 1

stu1 = Student('xiaoming')
stu2 = Student('xiaohong')  # 第二次调用时  count不是初始话为0吗？
print(stu1.name)
print(Student.count)
